package com.tmall.tmall.service;

import com.tmall.tmall.pojo.MainCategory;
import com.tmall.tmall.pojo.PageRt;

import java.util.List;

public interface MainCategoryService {
    PageRt page(Integer pageNum, Integer pageSize, String name);

    MainCategory getByName(MainCategory mainCategory);

    void insert(MainCategory mainCategory);

    MainCategory getById(Integer id);

    void update(MainCategory mainCategory);

    void deleteByIds(List<Integer> ids);

    List<MainCategory> selectAll();
}
